﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewMovieUserControl.ascx.cs" Inherits="MBS.UserControls.MovieUserControl.ViewMovieUserControl" %>
<%@ Register src="MovieList.ascx" tagname="MovieList" tagprefix="uc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>



<style type="text/css">
    .style1
    {
        width: 100%;
    }
   
</style>
<table class="style1">
    <uc1:MovieList ID="MovieList1" runat="server" />
    <tr>
        <td width="20%">
            <asp:Label ID="Label1" runat="server" Text="Movie ID" CssClass="label"></asp:Label>
        </td>
        <td width="80%">
           <asp:Label ID="MovieIDLabel" runat="server" Text="Label" CssClass="label"></asp:Label>
        </td>
    </tr>
     <tr>
        <td>
            <asp:Label ID="Label3" runat="server" Text="Movie Title" CssClass="label"></asp:Label>
        </td>
        <td>
           <asp:TextBox ID="MovieTitleTextBox" runat="server" CssClass="textbox"></asp:TextBox>
           <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                ControlToValidate="MovieTitleTextBox" ErrorMessage="Enter Movie Title" ForeColor="Red" Text="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td >
             <asp:Label ID="Label5" runat="server" Text="Description" CssClass="label"></asp:Label>
        </td>
        <td>
             <asp:TextBox ID="DescriptionTextBox" runat="server" CssClass="textbox"></asp:TextBox>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                ControlToValidate="DescriptionTextBox" ErrorMessage="Enter Description"  ForeColor="Red" Text="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
             <asp:Label ID="Label7" runat="server" Text="Duration (mins)" CssClass="label"></asp:Label>
        </td>
        <td>
              <asp:TextBox ID="DurationTextBox" runat="server" CssClass="textbox"></asp:TextBox>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                ControlToValidate="DurationTextBox" ErrorMessage="Enter Duration"  ForeColor="Red" Text="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label24" runat="server" Text="Genre" CssClass="label"></asp:Label>
        </td>
        <td>
              <asp:TextBox ID="GenreTextBox" runat="server" CssClass="textbox"></asp:TextBox>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="GenreTextBox" ErrorMessage="Enter Genre"  ForeColor="Red" Text="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td >
            <asp:Label ID="Label25" runat="server" Text="Cast" CssClass="label"></asp:Label>
        </td>
        <td>
          <asp:TextBox ID="CastTextBox" runat="server" CssClass="textbox"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="CastTextBox" ErrorMessage="Enter Cast" ForeColor="Red" Text="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label26" runat="server" Text="Rating" CssClass="label"></asp:Label>
        </td>
        <td>
              <asp:TextBox ID="RatingTextBox" runat="server" EnableViewState="False" CssClass="textbox"></asp:TextBox>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                 ControlToValidate="RatingTextBox" ErrorMessage="Enter Rating" ForeColor="Red" Text="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td >
         <asp:Label ID="Label27" runat="server" Text="ImageURL" CssClass="label"></asp:Label>
        </td>
        <td>
           <asp:TextBox ID="ImageURLTextBox" runat="server" CssClass="textbox"></asp:TextBox>
           <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                ControlToValidate="ImageURLTextBox" ErrorMessage="Enter URL" ForeColor="Red" Text="*"></asp:RequiredFieldValidator>
          </td>
    </tr>
    <tr>
        <td >
        <asp:Label ID="Label28" runat="server" Text="Release Date" CssClass="label"></asp:Label>
           </td>
        <td>
        <!--
         <asp:Calendar ID="releaseDateCalendar"  runat="server" 
                onselectionchanged="releaseDateCalendar_SelectionChanged"></asp:Calendar>
               -->
               <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </asp:ToolkitScriptManager>
                <asp:CalendarExtender ID="releaseDateCalendarAjax" TargetControlID="ReleaseDateTextBox" runat="server" CssClass="custom-calendar">
                    </asp:CalendarExtender>
                    <asp:TextBox ID="ReleaseDateTextBox" runat="server"  ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                ControlToValidate="ReleaseDateTextBox" ErrorMessage="Enter Release Date" ForeColor="Red" Text="*"></asp:RequiredFieldValidator>
           </td>
    </tr>
        <tr>        
        <td>
            <asp:Label ID="Label29" runat="server" Text="Trailer URL" CssClass="label"></asp:Label>
        </td>
        <td>
              <asp:TextBox ID="txtTrailerURL" runat="server" EnableViewState="False" CssClass="textbox"></asp:TextBox>
              <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                 ControlToValidate="txtTrailerURL" ErrorMessage="Enter Trailer URL" ForeColor="Red" Text="*"></asp:RequiredFieldValidator>
        </td>
    </tr>
       <tr> 
       <td></td>
        <td>
         <asp:Button ID="UpdateMovieBtn" runat="server" onclick="UpdateMovieBtn_Click" 
    Text="Update" CssClass="button"/>
           <asp:Button ID="DeleteMovieBtn" runat="server" onclick="DeleteMovieBtn_Click" 
    Text="Delete" CssClass="button"/>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" />
        </td>
    </tr>
   
</table>


